<template>
    <div class="cate">
        <div class="cate-icon" :style="{'background':cate.bgColor}" @click="$router.push('/cate')">
            <van-icon size="25" name="gift-o" />
        </div>
        <span>{{cate.title}}</span>
    </div>
</template>

<script>
export default {
    name: "",
    props: {
        cate: {
            type: Object
        }
    },
    methods: {},
    components: {},
    mounted() {},
    updated() {}
};
</script>

<style scoped>
.cate {
    width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}
.cate .cate-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* background: rgb(191, 238, 144); */
    display: flex;
    justify-content: center;
    align-items: center;
}
.cate span {
    font-size: 12px;
    padding: 5px 0;
}
</style>
